//
//  CMDBWorkManagerDelegate.swift
//  CMDB
//
//  Created by 王磊 on 17/4/10.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

protocol CMDBWorkManagerDelegate: NSObjectProtocol {
    
    func queryHomeWorks(homeWorksParam: CMDBHomeWorkParam,handler: CMDBHomeWorksHandler,error: CMDBHttpErrorHandler,failure: CMDBHttpFailureHandler)
    
    func saveHomeWorks(array: Array<CMDBHomeWorksBean>,identifier: String)
    
    func queryHomeWorks(identifier: String) throws -> Array<CMDBHomeWorksBean>
    
    func queryWorks(worksParam: CMDBWorkParam,tableView: UITableView,handler: CMDBWorksListHandler,error: CMDBHttpErrorHandler,failure: CMDBHttpFailureHandler)
    
    func saveWorks(array: Array<CMDBWorksBean>,identifier: String)
    
    func queryWorks(identifier: String) throws -> Array<CMDBWorksBean>
    
    //    func queryWorksDetail()
    
    //  获取关联作品
    func queryAssociateMedia(associateParam: CMDBAssociateParam,handler: CMDBAssociateHandler,error: CMDBHttpErrorHandler,failure: CMDBHttpFailureHandler)
    // 关联作品
    func associateMediaToUser(associateParam: CMDBAssociateToUserParam,handler: CMDBAssociateToUserHandler,error: CMDBHttpErrorHandler,failure: CMDBHttpFailureHandler) throws

    
}
